﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request.Form["userid"]))
        {
            Session["userid"] = Request.Form["userid"];
        }

        if (!string.IsNullOrEmpty(Request.Form["password"]))
        {
            Session["pwd"] = Request.Form["password"];
        }
        HttpCookie cookie = Request.Cookies["Users"];
        if (cookie != null)
        {
            if (cookie["userid"] != "")
                Session["userid"] = cookie["userid"];
            //if (cookie["password"] != "")
            //    Session["pwd"] = cookie["password"];
        }
        Response.Redirect("ePioneer/Default.htm");
    }
}
